import request from '@/utils/request'

// 查询订单评价列表
export function listEvaluate(query) {
  return request({
    url: '/system/evaluate/list',
    method: 'get',
    params: query
  })
}

// 查询订单评价详细
export function getEvaluate(ordersEvaluateId) {
  return request({
    url: '/system/evaluate/' + ordersEvaluateId,
    method: 'get'
  })
}

// 新增订单评价
export function addEvaluate(data) {
  return request({
    url: '/system/evaluate',
    method: 'post',
    data: data
  })
}

// 修改订单评价
export function updateEvaluate(data) {
  return request({
    url: '/system/evaluate',
    method: 'put',
    data: data
  })
}

// 删除订单评价
export function delEvaluate(ordersEvaluateId) {
  return request({
    url: '/system/evaluate/' + ordersEvaluateId,
    method: 'delete'
  })
}

// 导出订单评价
export function exportEvaluate(query) {
  return request({
    url: '/system/evaluate/export',
    method: 'get',
    params: query
  })
}